package com.heima.article.feign;

import com.heima.api.feign.ApArticleFeignClient;
import com.heima.article.service.ArticleService;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
/**
 * @author     ：zhangheng
 * @date       ：Created in 2024/10/13 10:18
 * @description：
 * @modified By：
 * @version:
 */
public class ArticleClient implements ApArticleFeignClient {
  @Autowired
  private ArticleService articleService;
  @Override
  @PostMapping("/api/v1/article/save")
  public ResponseResult save(@RequestBody ArticleDto dto) {
    return articleService.save(dto);
  }

}

